// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

export default class UtilityTool {

    public static customUuidv4(): string {
        const chars = '0123456789abcdef';
        let uuid = '';
        for (let i = 0; i < 16; i++) {
            const randomIndex = Math.floor(Math.random() * chars.length);
            uuid += chars[randomIndex];
        }
        return uuid;
    }
}
